home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
008a
/
listdel.zip
/
README
< prev
Wrap
Text File
|
1991-10-27
|
4KB
|
137 lines
Here's a little utility in exchange for the freebies that I've downloaded.
THIS SOFTWARE IS SUPPLIED AS IS, WITHOUT WARRENTY AND I TAKE NO
RESPONSIBILITY FOR ANY DAMAGE CAUSED BY IT'S USE. USE OF THIS SOFTWARE
IS ACCEPTANCE OF THIS DISCLAIMER. I RECOMMEND THAT YOU BACKUP YOUR
DRIVE BEFORE USING THE UTILITY.
That's got that out of the way, now here's what it does.
I downloaded a global delete utilities from CIS with the intention of
erasing all of my *.old, *.bak files, etc.
When it came to it, I found that there were a few files with these
extensions that I didn't want to delete. So LISTDEL.EXE is a solution
to that problem.
It uses the directory listing generated by the DOS 5.0 DIR command to
allow you to quickly erase only those files that you want to erase.
INSTRUCTIONS:
Create a file (in the example below it is called LIST) containing a
directory listing using for instance:
DIR /s *.bak >LIST
Edit this file placing an asterix ('*') at the beginning of each file that you
wish to delete. (See an example of a typical file below.)
Save the modified file.
Run LISTDEL as follows:
LISTDEL LIST
(or replace LIST with whatever filename you have chosen to use).
This will NOT erase anything but it will tell you what files will be
erased. Check this to make sure that you're be happy to erase all of
these files. (If not, modify the file LIST adding and removing asterix's
as appropriate.)
When you are satisified, you can ACTUALLY erase the files by adding the
/DOIT option to the command line as follows:
LISTDEL LIST /DOIT
NOTHING WILL EVER BE ERASED UNLESS YOU USE THE /DOIT OPTION ON THE
COMMAND LINE.
The filename and options can be in any order and are case insensitive.
If you want to erase most of the files in LIST, then the command line
option /MARKALL will create a new file with asterix's added to all of
the filenames. Then you can edit the new file removing asterix's from
the files that you DON'T want to delete.
The command:
LISTDEL LIST /MARKALL
will use the information in LIST and generate a new file called LIST.MRK
(If LIST.MRK already exists then the program will abort.)
Edit LIST.MRK, removing asterix's as appropriate and then run LISTDEL as
follows:
LISTDEL LIST.MRK
This will show you which files will be deleted and when you are happy
with the intented outcome add /DOIT to the command line to erase the
chosen files. I.e.:
LISTDEL LIST.MRK /DOIT
If you find LISTDEL useful, let me know. I'll then be encouraged to
upload any enhancements.
Alan Harry
Cambridge
UK
Sunday, 27 October 1991
Contactable via Compuserve; User id 100023,525.
*******************************************
As an example, here is a typical directory listing generated by the DOS
5.0 DIR command with the /s option, executed from the root directory.
Asterix's have been added at the front of a number of file names to
specify that these are the ones to be erased:
Volume in drive C is DOS401
Volume Serial Number is 1748-9D05
Directory of C:\
CONFIG BAK 869 19/10/91 22:03
1 file(s) 869 bytes
Directory of C:\COMPILE
*COMP8051 BAK 5995 24/10/91 4:53
1 file(s) 5995 bytes
Directory of C:\COMPILE\8051LIB
*SCANF BAK 10453 27/10/91 16:36
*CT BAK 30 16/10/91 15:31
*MYHDR BAK 184 06/10/91 19:06
3 file(s) 10667 bytes
Directory of C:\NEWPRODS\TERMINAL.JPD\DISC1
COMMENT BAK 329 04/03/91 22:55
*README BAK 290 04/03/91 23:07
2 file(s) 619 bytes
Directory of C:\UTILS
*LISTDEL BAK 4715 27/10/91 18:02
1 file(s) 4715 bytes
Total files listed:
28 file(s) 53314 bytes
27828224 bytes free